//
//  InventoryTableViewCell.m
//  DA_V
//
//  Created by 周季阳 on 15/5/6.
//  Copyright (c) 2015年 zhouhai. All rights reserved.
//

#import "InventoryTableViewCell.h"
#import "InterFace.h"
#import "UIViewAdditions.h"
@implementation InventoryTableViewCell
@synthesize zName,zNumber,lineView;
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        
        zName = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 150, 40)];
        zName.textColor = [UIColor blackColor];
        zName.textAlignment = NSTextAlignmentLeft;
        zName.font = [UIFont systemFontOfSize:14];
        [self addSubview:zName];
        
        lineView = [[UIView alloc]initWithFrame:CGRectMake(10, 39, SCREEN_WIDTH-20, 0.5)];
        lineView.backgroundColor = [UIColor lightGrayColor];
        [self addSubview:lineView];
        
        zNumber = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2, 0, SCREEN_WIDTH/2-10, 40)];
        zNumber.textColor = [UIColor blackColor];
        zNumber.textAlignment = NSTextAlignmentRight;
        zNumber.font = [UIFont systemFontOfSize:14];
        [self addSubview:zNumber];
        
    }
    return self;
}
@end
